-- GENERATED SPELL FOR [Disembodied Vindicator] --


function spell0_18872(pUnit, Event) --@Revenge of the Fallen,Self--
pUnit:FullCastSpellOnTarget(36003,pUnit)
pUnit:RegisterEvent('Sorts_18872', 15273, 1)
end

function spell1_18872(pUnit, Event) --@Vindication,n/a--
pUnit:FullCastSpellOnTarget(36002,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18872', 10322, 1)
end

function Sorts_18872(pUnit, Event)
local choix_sorts_18872 = math.random(0, 1)
if choix_sorts_18872 == 0 then
pUnit:RegisterEvent('spell0_18872', 1, 1)
end
if choix_sorts_18872 == 1 then
pUnit:RegisterEvent('spell1_18872', 1, 1)
end
end

function mob18872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18872', math.random(1500, 3000), 1)
end

function mob18872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18872, 1, 'mob18872_Action')
RegisterUnitEvent(18872, 2, 'mob18872_Leave')
RegisterUnitEvent(18872, 3, 'mob18872_Kill')
RegisterUnitEvent(18872, 4, 'mob18872_Die')
